<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/head.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/order.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/Carousel figure.css">
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <%--<link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">--%>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/bootstrap.css">

    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath }/css/style.css"/>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath }/css/public.css"/>
</head>
<body style="background-color: white">
<header class="a">
    <div class="a2"><img src="${pageContext.request.contextPath }/images/travel/iphone.png" style="width: 100%;height: 100%;object-fit:cover"></div>
    <div class="a2"><img src="${pageContext.request.contextPath }/images/travel/wechat.png" style="width: 100%;height: 100%;object-fit:cover"></div>

    <c:if test="${users.name==null}">
        <div class="a1">
            <a href="${pageContext.request.contextPath}/skip/skipUserLogin" style="text-decoration: none;">请用户登录！</a>
        </div>
        <div class="a1">
            <a href="${pageContext.request.contextPath}/skip/skipUsersLogin" style="text-decoration: none;">商家登录</a>
        </div>
        <div class="a1">
            <a href="${pageContext.request.contextPath}/skip/register" style="text-decoration: none;">商家注册</a>
        </div>
    </c:if>




    <c:if test="${users.name!=null}">
        <div class="a1">
            <a href="${pageContext.request.contextPath}/user/loginOut" style="text-decoration: none;">退出</a>
        </div>
        <div class="a1">
            <a href="${pageContext.request.contextPath }/font/usersOrder" style="text-decoration: none;">我的订单</a>
        </div>
        <div class="a1">
            <a href="${pageContext.request.contextPath}/skip/skipUsersLogin" style="text-decoration: none;">商家登录</a>
        </div>
        <div class="a1">
            <a href="${pageContext.request.contextPath}/skip/register" style="text-decoration: none;">商家注册</a>
        </div>
        <div class="a1" style="width: 200px;    line-height: 30px;">
            <p>
                <span>您好！</span>
                <span style="color: #000000">${users.name}</span>
                , 欢迎你！

            </p>
        </div>
    </c:if>


</header>
<div class="b">
    <div class="b1"><img src="${pageContext.request.contextPath }/images/travel/22.JPG" style="width: 100%;height: 100%;object-fit:cover"></div>

    <div class="col-md-8 colum">
        <form class="form-inline" action="${pageContext.request.contextPath}/font/select" method="post" style="float: right">
            <input type="text" name="keyWord" class="form-control" style="width:500px;margin-top: 6%;margin-left: -45%;" placeholder="${null}">
            <input type="submit" value="查询" class="btn btn-primary" style="margin-top: 6%;">
        </form>
    </div>

    <div class="b2"><img src="${pageContext.request.contextPath }/images/travel/phone.JPG" style="width: 100%;height: 100%;object-fit:cover"></div>
</div>
<div class="c">

    <div class="c1" ><a href="${pageContext.request.contextPath}/home page.jsp">首页</a></div>
    <div class="c1"><a href="${pageContext.request.contextPath}/font/travel?priductaddress=北京&priductaddress01=成都&priductaddress02=福州&priductaddress03=西藏">畅行旅游</a></div>
    <div class="c1"><a href="${pageContext.request.contextPath}/font/travel_team?number01=6&number02=8&number03=10&number04=12">团购旅游</a></div>
    <div class="c1"><a href=""></a></div>
    <div class="c1"><a href=""></a></div>

</div>

<div class="order">
    <div class="left">

        <div class="left">
            <h2 class="leftH2"><span class="span1"></span>用户信息 <span></span></h2>
            <nav>
                <ul class="list">
                    <li><a href="${pageContext.request.contextPath}/order/queryusersOrder">旅游订单</a></li>
                    <li><a href="${pageContext.request.contextPath}/user/select_users">个人信息修改</a></li>
                </ul>
            </nav>
        </div>


    </div>
    <div class="right">




        <!--商家订单查询-->
        <table class="providerTable" cellpadding="0" cellspacing="0">
            <tr class="firstTr">
                <th width="10%">订单编码</th>
                <th width="20%">商品名称</th>
                <th width="10%">订单金额</th>
                <th width="10%">成人人数</th>
                <th width="10%">小孩人数</th>
                <th width="10%">创建时间</th>
                <th width="10%">详情</th>
                <th width="20%">操作</th>
            </tr>
            <c:forEach var="orders"  items="${orders.list}">
                <tr>
                    <td>
                        <span>${orders.ordercode}</span>
                    </td>
                    <td>
                        <span>${orders.ordername}</span>
                    </td>
                        <%--<td>--%>
                        <%--<span>${bill.providerName}</span>--%>
                        <%--</td>--%>
                    <td>
                        <span>${orders.total_price}</span>
                    </td>
                    <td>
                        <span>${orders.adult_number}</span>
                    </td>
                    <td>
                        <span>${orders.child_number}</span>
                    </td>

                    <td>
					<span>
					<fmt:formatDate value="${orders.ordertime}" pattern="yyyy-MM-dd"/>
					</span>
                    </td>
                    <td>
                        <span><a href="${pageContext.request.contextPath }/font/details?cno=${orders.cno}&productcode=${orders.productcode}">详情</a></span>
                    </td>
                    <td>
                        <span><a class="deleteBill" href="${pageContext.request.contextPath }/order/usersDeleteOrder?ordercode=${orders.ordercode}&userCode=${orders.usercode}&name=${orders.name}&total_price=${orders.total_price}&productcode=${orders.productcode}&child_number=${orders.child_number}&adult_number=${orders.adult_number}" ><img src="${pageContext.request.contextPath }/images/schu.png" alt="删除" title="删除"/></a></span>
                    </td>
                </tr>
            </c:forEach>



        </table>
        <div style="font-size: 20px;float: right">
            <a class="prev"
               href="${pageContext.request.contextPath}/order/queryusersOrder?page=${orders.pageNum-1}&size=6"
               id="prePage">前一页</a>
            <span class="current">当前页${orders.getPageNum()}</span>
            <a class="num"
               href="${pageContext.request.contextPath}/order/queryusersOrder?page=${orders.pageNum+1}&size=6">后一页</a>
            <a class="num" href="">总${orders.getPages()}页</ a>

        </div>




    </div>
</div>





<div style="width: 500px;height: 400px;background-color: #ffffff"></div>
</body>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/product_img.js"></script>
</html>
<jsp:include page="/WEB-INF/jsp/foot.jsp"/>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/billlist.js"></script>